package com.wanli.graalvmdemo.entity;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;
import java.util.Set;

@Table("t_users")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class User {
    @Id
    private Long id;
    private String username;
    private String password;
    private boolean enable;
    private Set<String> roles;

    public boolean isEnabled() {
        return true;
    }

    // getters and setters
}